﻿using System;
using System.Windows.Forms;
using TFSExceptionHandling.Domain.Model.TFS;

namespace WindowsFormsApplication
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            var workitem = new WorkItemHandling
                {
                    ReproSteps = "reprodução 1",
                    Title = "Titulo 1",
                    WorkItemType = "Bug"
                };

            new TfsHandlingHost.TfsHandlingClient().RegisterWorkItem(workitem);

            label1.Text = "Work Item cadastrada!";
        }
    }
}
